<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>发布公告</title>

<link type="text/css" rel="stylesheet" href="<%=basePath%>css/xinde.css">

<link type="text/css" rel="stylesheet"
	href="<%=basePath%>css/resources/css/ext-all.css">

<script type="text/javascript" src="<%=basePath%>js/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath%>js/ext-all.js"></script>

<script type="text/javascript" defer="defer">
			Ext.QuickTips.init();  // enable tooltips
			var editor = new Ext.form.HtmlEditor({
    		renderTo: Ext.get("editor"),
    		height: 300,
    		width: Ext.get("container").getWidth(),
    		name: "noticeContent"
			});
			
			editor.addClass("editor");
			
			
			</script>

</head>
<body style="padding-top: 50px">
<div class="container" id="container"
	style="position: absolute; left: 50px; top: 30px">
<div class="header">发布公告</div>
<form action="<%=basePath%>NoticeServlet?action=add" method="post">

<div style="text-align: left">公告主题: <input type="text"
	name="noticeTitle" size="50" style="width: 400px; heigth: 40px" /></div>
<div id="editor"></div>

<div style="text-align: left"><input type="submit" value="发布公告"
	size="20"></div>
</form>
</div>

</body>

</html>
